﻿<%@ Page Language="C#" MasterPageFile="~/ComMasterPage.master" AutoEventWireup="true" CodeFile="ComRegiste.aspx.cs" Inherits="ComRegiste" Title="长春校园人才网-企业注册" %>
 
<%@ Register Src="comlogin.ascx" TagName="comlogin" TagPrefix="uc1" %>
<%@ Register Assembly="DotNetTextBox" Namespace="DotNetTextBox" TagPrefix="DNTB" %>
<asp:Content ID="Content2" ContentPlaceHolderID="headCompany" runat="server">
    <link href="css/company.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="leftmain">
        <div class="topbox">
            <%--登录--%>
            <div id="loginbox" class="leftBox">
                <div class="loginChioce">
                    <span class="leftTop">企业登录</span>
                </div>
                <uc1:comlogin ID="comlogin2" runat="server" />
            </div>
            <%--考试信息--%>
            <div class="leftBox">
                <div class="loginChioce">
                    <span class="leftTop">考试信息</span>
                    <a class="more" href="Exam.aspx" target="_blank"><span>more》</span></a>
                </div>
                <div>
                    <marquee behavior="scroll" onfocus="stop();" onmouseover="stop();" onmouseout="start();" atomicselection="False" direction="up" height="100px" scrollamount="1">
                        <asp:DataList id="dlexa" HorizontalAlign="left" DataSourceID="SqlDataSource3" DataKeyField="eiid" runat="server">
                            <ItemTemplate>
                                <asp:Image id="Image1" runat="server" __designer:wfdid="w31" ImageUrl="~/images/rss.gif" Width="10px" Height="10px"></asp:Image> 
                                <asp:HyperLink id="HyperLink2" runat="server" Text='<%# Eval("eititle")+"("+Eval("eitime")+")" %>' Target="_blank" NavigateUrl='<%# "Exam.aspx?exa="+Eval("eiid") %>' __designer:wfdid="w32"></asp:HyperLink> 
                            </ItemTemplate>
                        </asp:DataList> 
                        <asp:SqlDataSource id="SqlDataSource3" runat="server" SelectCommand="SELECT * FROM [examinfo]" ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"></asp:SqlDataSource></marquee>
                </div>
            </div>
            <%--最新招聘会信息--%>
            <div class="leftBox">
                <div class="loginChioce">
                    <span class="leftTop">招聘会</span>
                    <a class="more" href="WantMeet.aspx" target="_blank"><span>more》</span></a>
                </div>
                <div>
                    <marquee behavior="scroll" onfocus="stop();" onmouseover="stop();" onmouseout="start();" atomicselection="False" direction="up" height="100px" scrollamount="1">
                        <asp:DataList id="DataList1"  HorizontalAlign="left" DataSourceID="SqlDataSource4" DataKeyField="wmid" runat="server">
                            <ItemTemplate>
                                <asp:Image id="Image2" runat="server" __designer:wfdid="w29" ImageUrl="~/images/rss.gif" Width="10px" Height="10px"></asp:Image>
                                <asp:LinkButton id="LinkButton1" runat="server" Text='<%# Bind("wmititle") %>' __designer:wfdid="w30" onclientclick='<%# "window.showModalDialog(\"WantMeetInfo.aspx?wmid="+Eval("wmid")+"\")" %>'></asp:LinkButton> 
                            </ItemTemplate>
                        </asp:DataList></marquee>
                    <asp:SqlDataSource ID="SqlDataSource4" runat="server" SelectCommand="SELECT * FROM [WantMeetInfo]" ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"></asp:SqlDataSource>
                </div>
            </div>
            <%--应届生求职指导--%>
            <div class="leftBox">
                <div class="loginChioce">
                    <span class="leftTop">求职指导</span>
                    <a class="more" href="JobSeeker.aspx" target="_blank"><span>more》</span></a>
                </div>
                <div>
                    <asp:DataList ID="dlqz" runat="server" CaptionAlign="Bottom" CellPadding="3" DataKeyField="jsid" DataSourceID="SqlDataSource5" Height="20px">
                        <ItemTemplate>
                            <asp:Image ID="Image3" runat="server" Height="10px" ImageUrl="~/images/tj.jpg" Width="10px" />
                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "JobSeekerInfo.aspx?jsid="+Eval("jsid")+"&js="+Eval("jscid") %>' Text='<%# Eval("jsname") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:DataList>
                    <asp:SqlDataSource ID="SqlDataSource5" runat="server" ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>" SelectCommand="SELECT top 10 * FROM [jobseeker] ORDER BY [jstime] DESC"></asp:SqlDataSource>
                </div>
            </div>
        </div>
    </div>

    <div class="rightmain">
        <div class="rightHeader1">
            <div class="rightHLeft"><span class="rightHeaderTitle">当前位置</span></div>
            <div class="rightHMiddle2">
                <span>
                    <span class="moreRight" style="float: left;">企业注册</span>
                </span>
            </div>
            <div class="rightHRight"></div>
        </div>
        <div style="margin-top: 10px; border: 1px solid #ddd;">
            <table id="regCompany" cellpadding="3">
                <tr>
                    <td style="width: 212px;text-align: right">企业标志：</td>
                    <td colspan="2" style="text-align: left;">
                        <table style="width: 100%; table-layout: auto; border-collapse: collapse;">
                            <tr>
                                <td style="width: 200px;">
                                    <div style="height: 107px; width: 166px; border: 1px solid #ddd;">
                                        <asp:Image ID="Image1" runat="server" Height="100%" Width="100%" />
                                    </div>
                                </td>
                                <td>
                                    <asp:SqlDataSource ID="comre" runat="server" ConflictDetection="CompareAllValues"
                                        ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"
                                        DeleteCommand="DELETE FROM [tb_company] WHERE [cpid] = @original_cpid AND [cpname] = @original_cpname AND [cppwd] = @original_cppwd AND [cpadd] = @original_cpadd AND [cpsynopsis] = @original_cpsynopsis AND [cptel] = @original_cptel AND [cpmail] = @original_cpmail AND [cpclass] = @original_cpclass AND [cplogo] = @original_cplogo AND [cpscale] = @original_cpscale AND [cptime] = @original_cptime AND [cphref] = @original_cphref"
                                        InsertCommand="INSERT INTO [tb_company] ([cpname], [cppwd], [cpadd], [cpsynopsis], [cptel], [cpmail], [cpclass], [cplogo], [cpscale], [cptime], [cphref]) VALUES (@cpname, @cppwd, @cpadd, @cpsynopsis, @cptel, @cpmail, @cpclass, @cplogo, @cpscale, @cptime, @cphref)"
                                        OldValuesParameterFormatString="original_{0}"
                                        SelectCommand="SELECT * FROM [tb_company]"
                                        UpdateCommand="UPDATE [tb_company] SET [cpname] = @cpname, [cppwd] = @cppwd, [cpadd] = @cpadd, [cpsynopsis] = @cpsynopsis, [cptel] = @cptel, [cpmail] = @cpmail, [cpclass] = @cpclass, [cplogo] = @cplogo, [cpscale] = @cpscale, [cptime] = @cptime, [cphref] = @cphref WHERE [cpid] = @original_cpid AND [cpname] = @original_cpname AND [cppwd] = @original_cppwd AND [cpadd] = @original_cpadd AND [cpsynopsis] = @original_cpsynopsis AND [cptel] = @original_cptel AND [cpmail] = @original_cpmail AND [cpclass] = @original_cpclass AND [cplogo] = @original_cplogo AND [cpscale] = @original_cpscale AND [cptime] = @original_cptime AND [cphref] = @original_cphref">
                                        <DeleteParameters>
                                            <asp:Parameter Name="original_cpid" Type="Int32" />
                                            <asp:Parameter Name="original_cpname" Type="String" />
                                            <asp:Parameter Name="original_cppwd" Type="String" />
                                            <asp:Parameter Name="original_cpadd" Type="String" />
                                            <asp:Parameter Name="original_cpsynopsis" Type="String" />
                                            <asp:Parameter Name="original_cptel" Type="String" />
                                            <asp:Parameter Name="original_cpmail" Type="String" />
                                            <asp:Parameter Name="original_cpclass" Type="String" />
                                            <asp:Parameter Name="original_cplogo" Type="String" />
                                            <asp:Parameter Name="original_cpscale" Type="String" />
                                            <asp:Parameter Name="original_cptime" Type="DateTime" />
                                            <asp:Parameter Name="original_cphref" Type="String" />
                                        </DeleteParameters>
                                        <UpdateParameters>
                                            <asp:Parameter Name="cpname" Type="String" />
                                            <asp:Parameter Name="cppwd" Type="String" />
                                            <asp:Parameter Name="cpadd" Type="String" />
                                            <asp:Parameter Name="cpsynopsis" Type="String" />
                                            <asp:Parameter Name="cptel" Type="String" />
                                            <asp:Parameter Name="cpmail" Type="String" />
                                            <asp:Parameter Name="cpclass" Type="String" />
                                            <asp:Parameter Name="cplogo" Type="String" />
                                            <asp:Parameter Name="cpscale" Type="String" />
                                            <asp:Parameter Name="cptime" Type="DateTime" />
                                            <asp:Parameter Name="cphref" Type="String" />
                                            <asp:Parameter Name="original_cpid" Type="Int32" />
                                            <asp:Parameter Name="original_cpname" Type="String" />
                                            <asp:Parameter Name="original_cppwd" Type="String" />
                                            <asp:Parameter Name="original_cpadd" Type="String" />
                                            <asp:Parameter Name="original_cpsynopsis" Type="String" />
                                            <asp:Parameter Name="original_cptel" Type="String" />
                                            <asp:Parameter Name="original_cpmail" Type="String" />
                                            <asp:Parameter Name="original_cpclass" Type="String" />
                                            <asp:Parameter Name="original_cplogo" Type="String" />
                                            <asp:Parameter Name="original_cpscale" Type="String" />
                                            <asp:Parameter Name="original_cptime" Type="DateTime" />
                                            <asp:Parameter Name="original_cphref" Type="String" />
                                        </UpdateParameters>
                                        <InsertParameters>
                                            <asp:ControlParameter ControlID="txtcomname" Name="cpname" PropertyName="Text"
                                                Type="String" />
                                            <asp:ControlParameter ControlID="txtcompwd" Name="cppwd" PropertyName="Text"
                                                Type="String" />
                                            <asp:ControlParameter ControlID="txtcomadd" Name="cpadd" PropertyName="Text"
                                                Type="String" />
                                            <asp:ControlParameter ControlID="WebEditor1" Name="cpsynopsis"
                                                PropertyName="Text" Type="String" />
                                            <asp:ControlParameter ControlID="txtcomtel" Name="cptel" PropertyName="Text"
                                                Type="String" />
                                            <asp:ControlParameter ControlID="txtcommail" Name="cpmail" PropertyName="Text"
                                                Type="String" />
                                            <asp:ControlParameter ControlID="txtcomclass" Name="cpclass"
                                                PropertyName="Text" Type="String" />
                                            <asp:ControlParameter ControlID="txtcomlogo" Name="cplogo" PropertyName="Text"
                                                Type="String" />
                                            <asp:ControlParameter ControlID="txtcomdx" Name="cpscale" PropertyName="Text"
                                                Type="String" />
                                            <asp:ControlParameter ControlID="txtcomtime" Name="cptime" PropertyName="Text"
                                                Type="DateTime" />
                                            <asp:ControlParameter ControlID="txthref" Name="cphref" PropertyName="Text"
                                                Type="String" />
                                        </InsertParameters>
                                    </asp:SqlDataSource>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtcomlogo" runat="server" Enabled="False" ReadOnly="True" Width="211px"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                                            ControlToValidate="txtcomlogo" ErrorMessage="*" ValidationGroup="re" Height="20px" Width="20px"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 193px; height: 24px;">
                                    <asp:FileUpload ID="FU" runat="server" Width="100%" />
                                </td>
                                <td style="height: 24px">
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
                                        ControlToValidate="FU" Display="Dynamic" ErrorMessage="请选图片！"
                                        ValidationExpression="(\S+.gif)|(\S+.png)|(\S+.jpg)|(\S+.jpeg)|(\S+.bmp)"
                                        ValidationGroup="up"></asp:RegularExpressionValidator>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 193px; height: 24px; text-align: right;">
                                    <asp:Button ID="Button3" runat="server" Width="50px" BackColor="#159fde" ForeColor="White" OnClick="Button1_Click" Text="上传" ValidationGroup="up" />
                                </td>
                                <td ></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">
                        <span style="color: #ff0000">企业名称：</span></td>
                    <td style="width: 115px; text-align: left;">
                        <asp:TextBox ID="txtcomname" runat="server" Width="200px" OnTextChanged="txtcomname_TextChanged"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server"
                            ControlToValidate="txtcomname" ErrorMessage="*" ValidationGroup="re" Height="20px" Width="20px"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">
                        <span style="color: #ff0000">E-Mail：</span></td>
                    <td style="text-align: left;">
                        <asp:TextBox ID="txtcommail" runat="server" Width="200px"></asp:TextBox><span style="color: #ff0000"></span></td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server"
                            ControlToValidate="txtcommail" ErrorMessage="*" ValidationGroup="re" Height="20px" Width="20px"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server"
                            ControlToValidate="txtcommail" Display="Dynamic" ErrorMessage="E-Mail错误！"
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">密码：</td>
                    <td style="text-align: left;">
                        <asp:TextBox ID="txtcompwd" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server"
                            ControlToValidate="txtcompwd" ErrorMessage="*" ValidationGroup="re" Height="20px" Width="20px"></asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator1" runat="server"
                            ControlToCompare="txtcompwd" ControlToValidate="txtcompwd1" Display="Dynamic"
                            ErrorMessage="确认密码错误！" ValidationGroup="re"></asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">确认密码：</td>
                    <td style="text-align: left;">
                        <asp:TextBox ID="txtcompwd1" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server"
                            ControlToValidate="txtcompwd1" ErrorMessage="*" ValidationGroup="re" Height="20px" Width="20px"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">地址：</td>
                    <td style="text-align: left;">
                        <asp:TextBox ID="txtcomadd" runat="server" Width="200px"></asp:TextBox></td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server"
                            ControlToValidate="txtcomadd" ErrorMessage="*" ValidationGroup="re" Height="20px" Width="20px"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td style="text-align: right;">电话：</td>
                    <td style="text-align: left;">
                        <asp:TextBox ID="txtcomtel" runat="server" Width="200px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server"
                            ControlToValidate="txtcomtel" ErrorMessage="*" ValidationGroup="re" Height="20px" Width="20px"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">企业类型：</td>
                    <td style="text-align: left;">
                        <asp:TextBox ID="txtcomclass" runat="server" Width="200px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server"
                            ControlToValidate="txtcomclass" ErrorMessage="*" ValidationGroup="re" Height="20px" Width="20px"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">企业规模：</td>
                    <td style="text-align: left;">
                        <asp:TextBox ID="txtcomdx" runat="server" Width="180px"></asp:TextBox>人
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server"
                            ControlToValidate="txtcomdx" ErrorMessage="*" ValidationGroup="re" Height="20px" Width="20px"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">公司网址：</td>
                    <td style="text-align: left;">
                        <asp:TextBox ID="txthref" runat="server" Width="200px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server"
                            ControlToValidate="txthref" Display="Dynamic" ErrorMessage="网址格式错误！(http://www.***.com)"
                            ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"
                            ValidationGroup="re"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">建立时间：</td>
                    <td style="text-align: left;">
                        <asp:TextBox ID="txtcomtime" runat="server" Width="200px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server"
                            ControlToValidate="txtcomtime" ErrorMessage="*" ValidationGroup="re" Height="20px" Width="20px"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server"
                            ControlToValidate="txtcomtime" Display="Dynamic" ErrorMessage="时间格式错误！(xxxx-xx-xx)"
                            ValidationExpression="\d{4}-\d{2}-\d{2}" ValidationGroup="re"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">简介:</td>
                    <td style="text-align: left;" colspan="2">
                        <DNTB:WebEditor ID="WebEditor1" runat="server" Height="180px"
                            MenuConfig="guest1.config" Shadow="False" Source="False" ToolBarHeight="20px"
                            Width="600px" Skin="skin/xp/" />
                    </td>
                </tr>
            </table>

            <div style="height:40px;margin-left:300px;">
                <asp:Button ID="Button2" Height="30px" Width="60px" runat="server" OnClick="Button2_Click" Text="确定" BackColor="#159fde" ForeColor="White" ValidationGroup="re" />&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="Button1" Height="30px" Width="60px" runat="server" OnClientClick="window.close();" BackColor="#159fde" ForeColor="White" Text="退出" />
            </div>
        </div>
    </div>
</asp:Content>

